@extends('admin/layout/index')

@section('title')
	用户修改
@endsection

@section('content')
	@if (count($errors) > 0)
	    <div class="mws-form-message error">
			错误提示
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif

	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span>用户添加页面</span>
        </div>
        <div class="mws-panel-body no-padding">
        	<form class="mws-form" action="/admin/user/update/{{$data['h_uid']}}" method="post">
        		{{ csrf_field() }}
        		<div class="mws-form-inline">
        			<div class="mws-form-row">
        				<label class="mws-form-label" style="font-size:16px;">用户名：</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="username" value="{{$data['username']}}">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label" style="font-size:16px;">年龄：</label>
        				<div class="mws-form-item">
        					<input type="text" class="small" name="age" value="{{$data['age']}}">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label" style="font-size:16px;">邮箱：</label>
        				<div class="mws-form-item">
        					<input type="email" class="small" name="email" value="{{$data['email']}}">
        				</div>
        			</div>
        			<div class="mws-form-row">
        				<label class="mws-form-label" style="font-size:16px;">性别</label>
        				<div class="mws-form-item clearfix">
        					<ul class="mws-form-list inline">
        						<li><input type="radio" name="sex" value="男" @if($data['sex'] == '男') checked @endif>男</li>
        						<li><input type="radio" name="sex" value="女" @if($data['sex'] == '女') checked @endif>女</li>
        						<li><input type="radio" name="sex" value="保密" @if($data['sex'] == '保密') checked @endif>保密</li>
        					</ul>
        				</div>
        			</div>
        		</div>
        		<div class="mws-button-row">
        			<input type="submit" value="提交" class="btn btn-danger">
        			<input type="reset" value="重置" class="btn ">
        		</div>
        	</form>
        </div>    	
    </div>
@endsection